package com.yjf.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator 岳剑飞
 * @date
 * @description:
 */
@RestController
@RequestMapping("/config")
public class ConfigController {

    // 和取本地配置信息一样
    @Value("${mail.myEmailAccount}")
    public static String myEmailAccount;

    @Value("${hahaha}")
    public static String url;

    // 内存级别的配置信息
    // 数据库，redis配置信息

    @GetMapping("/viewconfig")
    public String viewconfig() {
        return "myEmailAccount==>" + myEmailAccount + " url=>" + url;
    }

}
